﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace OpenComposite.HumanActivity.Contracts
{
	[DataContract(Namespace = "http://www.OpenComposite.com/internal/faults")]
	public class GenericFault
	{
		#region Initialization
		public GenericFault(string faultSource, string details)
		{
			this.FaultSource = faultSource;
			this.Details = details;
		}
		#endregion

		#region Data Members
		[DataMember]
		public string FaultSource { get; set; }
		[DataMember]
		public string Details { get; set; }
		#endregion

		#region ToString
		public override string ToString()
		{
			return string.Format(
				"{0} Details: {1}",
				this.FaultSource,
				this.Details);
		}
		#endregion
	}
}
